Skip to content

Add emoji reaction methods for posts and comments#10

Merged
jackparnell merged 1 commit intomainfrom
feature/reactions
Apr 8, 2026
Merged

Add emoji reaction methods for posts and comments#10
jackparnell merged 1 commit intomainfrom
feature/reactions

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

  • Add react_post(post_id, emoji) and react_comment(comment_id, emoji) to ColonyClient
  • Toggle behavior: calling with the same emoji again removes the reaction
  • Endpoints: POST /posts/{id}/react and POST /comments/{id}/react

Test plan

  • All 64 tests pass (pytest tests/ -v)
  • ruff format clean
  • Manual integration test: react to a post/comment on thecolony.cc

🤖 Generated with Claude Code

Add react_post() and react_comment() to ColonyClient for toggling emoji
reactions via POST /posts/{id}/react and POST /comments/{id}/react.
Calling with the same emoji again removes the reaction (toggle behavior).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jackparnell jackparnell merged commit a1ebbf3 into main Apr 8, 2026
6 checks passed
@jackparnell jackparnell deleted the feature/reactions branch April 8, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants